package com.dg.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.co.dynamic.annotation.DataSource;
import com.dg.dao.impl.BaseDaoImpl;
import com.dg.service.BaseObjectService;

@Service(value="objectService")
public class BaseObjectServiceImpl implements BaseObjectService {

	@Resource(name="baseDao")
	private BaseDaoImpl dao;
	
	public Object save(String sql, Object param) {
		return dao.save(sql, param);
	}
	
	public Object update(String sql, Object param) {
		return dao.update(sql, param);
	}
	
	public Object delete(String sql, Object param) {
		return dao.delete(sql, param);
	}
	
	public Object findAll(String sql, Object param) {
		return dao.findAll(sql, param);
	}
	
	public Object findOne(String sql, Object param) {
		return dao.findOne(sql, param);
	}
	
}
